<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        img {
            width: 300px;
            height: 200px;
            position: absolute;
            left: 1000px;
            top: 400px
        }
    </style>
    <script src="../js/jquery-3.6.0.min.js"></script>
    <script>

        $(function () {

            $("img").mousemove(function () {
                $(this).css({
                    top:Math.floor(Math.random()*500)+"px",
                    left:Math.floor(Math.random()*1500)+"px"
                })
            })
        })

    </script>
</head>
<body>
<img src="../1.2.10img/kj.png" alt=""/>
</body>
</html>